﻿using System.ComponentModel.DataAnnotations;

namespace Model.DTO.Comment
{
    /// <summary>
    /// 编辑文章评论DTO
    /// </summary>
    public class EditCommentDTO
    {
        /// <summary>
        /// 内容
        /// </summary>
        [Required(ErrorMessage = "内容不能为空"), MaxLength(8192, ErrorMessage = "内容不能超过128位")]
        public string Content { get; set; }
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }
        /// <summary>
        /// 浏览数量
        /// </summary>
        [Required(ErrorMessage = "浏览数量不能为空")]
        public int ViewNumber { get; set; }
        /// <summary>
        /// 点赞数量
        /// </summary>
        [Required(ErrorMessage = "点赞数量不能为空")]
        public int LikeNumber { get; set; }
        /// <summary>
        /// 评论数量
        /// </summary>
        [Required(ErrorMessage = "评论数量不能为空")]
        public int CommentNumber { get; set; }
        /// <summary>
        /// 收藏数量
        /// </summary>
        [Required(ErrorMessage = "收藏数量不能为空")]
        public int CollectNumber { get; set; }
        /// <summary>
        /// 备注(128)
        /// </summary>
        [MaxLength(128, ErrorMessage = "备注长度不能超过128位")]
        public string? Remark { get; set; }
    }
}
